# $Id: PKGBUILD 65437 2012-02-21 05:46:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=sgmltools-lite
pkgver=3.0.3
pkgrel=7
pkgdesc="SGML processing tools (sucessor to the obsolete SGMLtools)"
arch=('any')
url="http://sgmltools-lite.sourceforge.net/"
license=('GPL')
depends=('jade' 'python2')
source=(http://downloads.sourceforge.net/sourceforge/sgmltools-lite/sgmltools-lite-${pkgver}.tar.gz
        datadir.diff)
md5sums=('dab77d3d751ca381a95ccebd88480a85'
         '80e203062e121abab3cce3e7f54323be')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  export PYTHON=/usr/bin/python2
  patch -p0 <$srcdir/datadir.diff
  find -type d -name CVS -exec rm -rf {} \; || true
  ./configure --prefix=/usr --mandir=${pkgdir}/usr/share/man
  make
  make prefix=$pkgdir/usr etcdir=$pkgdir/etc/sgml install
}
